#include "CPoller.h"
#include "CCoroutineImpl.h"

namespace TB
{
	CPoller::CPoller()
	{
		m_poCoroutine = std::shared_ptr<CCoroutine>(new CCoroutine(true));
		m_poCoroutine->Init(m_poCoroutine);
	}

	UINT32 CPoller::Poll()
	{
		return m_poCoroutine->m_poImpl->Poll(false);
	}
}